home *** CD-ROM | disk | FTP | other *** search
/ Champak 54 / Vol 54.iso / games / totallys.swf / scripts / frame_295 / PlaceObject2_145_130 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2007-09-28  |  809 b   |  35 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.point >= 20000)
  3.    {
  4.       _root.mempoints = _root.point;
  5.       _root.memsc = _root.sc;
  6.       _root.bonus = _root.memsc * 100;
  7.       _root.score.gotoAndStop("noscore");
  8.       _root.init = 1;
  9.       _root.gotoAndPlay("level4");
  10.    }
  11.    else if(_root.fin == 1)
  12.    {
  13.       _root.mempoints = _root.point;
  14.       _root.gotoAndStop("endl01");
  15.    }
  16.    if(_root.b == 1)
  17.    {
  18.       _root.memgun = _root.canon._y;
  19.       _root.canon._y += 10;
  20.       j = 1;
  21.       while(_root.nmax >= j)
  22.       {
  23.          if(_root.cible.impact.hitTest(_root["popc" + j].pophit))
  24.          {
  25.             if(_root["popc" + j].popcol == 1)
  26.             {
  27.                _root["popc" + j].collision = 1;
  28.             }
  29.          }
  30.          j++;
  31.       }
  32.       _root.b = 0;
  33.    }
  34. }
  35.